﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ProductStock_StockStatistics" Codebehind="StockStatistics.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
<style type="text/css">
.input_button6 {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;font-weight:bold;}
</style>
    <script type="text/javascript">
    function GG_State()
    {
        var CKB_GG=document.getElementById('CKB_GG');
        var div_GG=document.getElementById('Div_GG');
        if(CKB_GG.checked)
        {
            div_GG.style.display="";
        }
        else
        {
            div_GG.style.display="none";
        }
        
    }
       function setValue(p)
       {
            document.getElementById("Tbx_DM").innerText=p;
            document.getElementById("HiddenField1").value=p;
       }    
       function spsearch()
       {
            document.getElementById("HiddenField1").value=document.getElementById("Tbx_DM").innerText;
       }
    </script>
<script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        </div>
         <div align="Justify">
         <h2>库存简明查询</h2>
         <div class="menu_bg">
         　　品牌：<asp:DropDownList ID="ddl_Brnad" runat="server" AppendDataBoundItems="true">
                                                                                <asp:ListItem>请选择</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                           
                                                                            <div style="display:none;">库位：<asp:DropDownList ID="DDL_KW" runat="server" AppendDataBoundItems="True">
                                                                                <asp:ListItem>请选择</asp:ListItem>
                                                                            </asp:DropDownList></div>
                                                                            <br />选择商品：<asp:TextBox ID="Tbx_DM" OnTextChanged="Tbx_DM_TextChanged" AutoPostBack="true" runat="server"></asp:TextBox>
                                                                             
                                                                        <a href="javascript:void(0);" onclick="SearchProductDM('../');"><input type="button" class="input_button6"  value="..." /></a>
                                                                            <asp:CheckBox ID="CKB_GG" Text="规格" runat="server" /><br />
                                                                            在库数量：<asp:TextBox ID="txtInStockQuantityMin" Width="69" runat="server"></asp:TextBox>-<asp:TextBox ID="txtInStockQuantityMax" Width="70" runat="server"></asp:TextBox>
                                                                            <br />占用数量：<asp:TextBox ID="txtInUseQuantityMin" Width="69" runat="server"></asp:TextBox>-<asp:TextBox ID="txtInUseQuantityMax" Width="70" runat="server"></asp:TextBox>
                                                                            <br />可用数量：<asp:TextBox ID="txtUsableQuantityMin" Width="69" runat="server"></asp:TextBox>-<asp:TextBox ID="txtUsableQuantityMax" Width="70" runat="server"></asp:TextBox> <asp:Button ID="Btn_Search" runat="server" Text="查找" CssClass="input_button"  OnClick="Btn_Search_Click" />
         </div>
         <div id="Div_GG" style="display: none">
                                                                                颜色：<asp:DropDownList runat="server" ID="ddl_color" AppendDataBoundItems="True">
                                                                                    <asp:ListItem>请选择</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                                尺寸：<asp:DropDownList runat="server" ID="ddl_Size" AppendDataBoundItems="True">
                                                                                    <asp:ListItem>请选择</asp:ListItem>
                                                                                </asp:DropDownList>
             </div>
        <div class="juli"><table width="100%" border="0" cellpadding="0" cellspacing="0" id="main">
            <tr>
                <td style="width: 100%">
                    <table width="100%" border="0" align="center" cellspacing="0" class="bodyline">
                        <tr>
                            <td>
                                <table width="100%" border="0">
                                    <tr>
                                        <td style="width: 100%;">
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>
                                                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                      <!--  <tr>
                                                            <td width="10" height="10">
                                                                <img height="10" src="../Common/Images/WN.gif" width="10"></td>
                                                            <td background="../Common/Images/N.gif" height="10">
                                                                <img height="10" src="../Common/Images/N.gif" width="1"></td>
                                                            <td width="10">
                                                                <img height="10" src="../Common/Images/EN.gif" width="10"></td>
                                                        </tr> -->
                                                        <tr>
                                                            <!--<td background="../Common/Images/W.gif">
                                                            </td> -->
                                                            <td>
                                                            

                                                               
                                                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  BackColor="White"
                                                                    BorderColor="#999999" BorderStyle=Solid BorderWidth="1px" CellPadding="3" Height="1px" Width="100%" EnableViewState="False" ShowFooter="false">
                                                                    <Columns>
                                                                        <asp:TemplateField HeaderText="商品编号">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("spdm") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Center" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="Color" HeaderText="颜色" ReadOnly="True">
                                                                            <ItemStyle HorizontalAlign="Center" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="Size" HeaderText="尺寸" ReadOnly="True">
                                                                            <ItemStyle HorizontalAlign="Center" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="spmc" HeaderText="商品名称" ReadOnly="True">
                                                                            <ItemStyle HorizontalAlign="Center" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                                                                        </asp:BoundField>
                                                                        

                                                                        <asp:TemplateField HeaderText="在库数量">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("S_SL") %>'></asp:Label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Right" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="在库金额">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:0.00}",Eval("S_Money")) %>' ForeColor="red"></asp:Label>
                                                                            </ItemTemplate>
                                                                            <ItemStyle HorizontalAlign="Right" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                                                                        </asp:TemplateField>
                                                                        <asp:BoundField DataField="S_Zy" HeaderText="占用数量" ReadOnly="True">
                                                                            <ItemStyle HorizontalAlign="Right" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                                                                        </asp:BoundField>
                                                                        <asp:BoundField DataField="S_Kysl" HeaderText="可用数量" ReadOnly="True">
                                                                            <ItemStyle HorizontalAlign="Right" BorderStyle="Solid" />
                                                                            <FooterStyle BorderStyle="Solid" />
                                                                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" HorizontalAlign="Center" />
                                                                        </asp:BoundField>
                                                                    </Columns>
                                                                    <HeaderStyle BackColor="#E7E7E7" HorizontalAlign="Left" ForeColor="DimGray" />
                                                                    <RowStyle ForeColor="Black" />
                                                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                                </asp:GridView>
                                                                <div>
                                                                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                                                                        NextPageText="下页" PrevPageText="上页" OnPageChanged="AspNetPager1_PageChanged" ShowInputBox="Never" PageSize="30">
                                                                    </webdiyer:AspNetPager>
                                                                </div>
                                                            </td>
                                                            <!--<td background="../Common/Images/E.gif"> -->
                                                        </tr>
                                                       <!-- <tr>
                                                            <td width="10" height="10">
                                                                <img height="10" src="../Common/Images/WS.gif" width="10"></td>
                                                            <td background="../Common/Images/S.gif" height="10">
                                                                <img height="10" src="../Common/Images/S.gif" width="2"></td>
                                                            <td width="10" height="10">
                                                                <img height="10" src="../Common/Images/ES.gif" width="10"></td>
                                                        </tr> -->
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" style="width: 100%">
                                            <asp:HiddenField ID="HiddenField1" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table></div>
        </div>
    </form>
</body>
</html>
